package org.jeecg.common.constant;


public enum ErrorMsg {

    OK_0(0,"成功"),
    OK_200(200,"成功"),
    UNAUTHORIZED(401,"未授权，请重新登录"),
    RESOURCE_NOT_FIND(404,"路径不存在，请检查路径是否正确"),
    SYSTEM_ERROR(500,"系统错误"),
    SC_JEECG_NO_AUTHZ(510,"没有权限，请联系管理员授权"),
    MYBATIS_ERROR(600,"mybatis查询错误"),
    RECORD_IS_EXIST(600,"数据库中已存在该记录"),
    RETUAN_DATA_IS_NULL(600,"接口返回数据为空"),
    ;

    private int code;
    private String msg;

    ErrorMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
